package dadaRent;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        int exitflag =1; //用于终止循环
        do {
            System.out.println("欢迎使用达达租车系统：");
            System.out.println("请问是否要租车：1、是 2、否");
            String choose =sc.next();
            switch (choose){
                case "1":
                    Function.AllStep();
                    exitflag =0;
                    break;
                case "2":
                    System.out.println("用户不需要租车,已成功退出！");
                    exitflag =0;
                    break;
                default:
                    System.out.println("输入有误，请重新输入！");
                    break;
            }
        }while (exitflag == 1);


    }
}

